Data Files Support
the most common use case for data files distributed with a package is for use by the package, usually by including the data files inside the package directory.
「パッケージディレクトリ内のデータファイル」
Setuptools focuses on this most common type of data files and offers three ways of specifying which files should be included in your packages
「setuptoolsはどのファイルがあなたのパッケージに含まれるべきかを指定する3つの方法を提供する」
setup関数などの引数3つの紹介
Summary
Accept all data files and directories matched by MANIFEST.in or added by a plugin.
「MANIFEST.inと一致する全てのデータファイルやディレクトリ、またはプラグインによって追加される全てのデータファイルやディレクトリを受け入れる」
Specify additional patterns to match files that may or may not be matched by MANIFEST.in or added by a plugin.
「MANIFEST.inと一致やプラグインによる追加をされたりされなかったりするファイルに一致する追加のパターンを指定する」
理解:MANIFEST.inに記載がなくても、package_dataに記載したらデータファイルとして追加できる
Specify patterns for data files and directories that should not be included when a package is installed, even if they would otherwise have been included due to the use of the preceding options.
「パッケージがインストールされるときに含められるべきでないデータファイルやディレクトリのパターンを指定する」
「たとえ前述の選択肢(include_package_dataやpackage_data)を使って、exclude_package_dataがなければ含められたとしても」
理解:合わせて使った場合は、exclude_package_dataが強い